<h1><%= t "user.model_name" %></h1>
<div class="apple_pagination">
  <%= will_paginate %>
</div>

<table>
  <tr>
    <th><%= t "user.firstname" %></th>
    <th><%= t "user.lastname" %></th>
    <th><%= t "user.email" %></th>
    <th>Admin</th>
    <th></th>
    <th></th>
  </tr>
  <% @users.each do |user| %>
      <tr>
        <td><%= user.firstname %></td>
        <td><%= user.lastname %></td>
        <td><%= link_to user.email, user %></td>
        <td><%= user.admin %></td>
        <td><%= link_to modify_icon, edit_user_path(user) %></td>
        <td><%= link_to delete_icon, user, confirm: 'Are you sure?', method: :delete %></td>
      </tr>
  <% end %>
</table>
<div class="apple_pagination">
  <%= will_paginate %>
</div>
<br/>
